//
//  GQHInvoiceModel.h
//  Xanthium
//
//  Created by GuanQinghao on 15/05/2018.
//  Copyright © 2018 GuanQinghao. All rights reserved.
//

#import "GQHBaseModel.h"

@interface GQHInvoiceModel : GQHBaseModel

//titleArray = @[@"购买方名称",@"纳税人识别号",@"收件地址",@"收件电话",@"开户账号",@"开户行",@"应税劳务名称",@"规格型号",@"单位",@"数量",@"合计税价",@"备注"];

/// 购买方名称
@property (nonatomic, copy) NSString *qh_purchaserName;
/// 纳税人识别号
@property (nonatomic, copy) NSString *qh_taxpayerNumber;
/// 收件地址
@property (nonatomic, copy) NSString *qh_address;
/// 收件电话
@property (nonatomic, copy) NSString *qh_mobile;
/// 开户账号
@property (nonatomic, copy) NSString *qh_account;
/// 开户行
@property (nonatomic, copy) NSString *qh_bank;
/// 应税劳务名称
@property (nonatomic, copy) NSString *qh_taxableServiceName;
/// 合计税价
@property (nonatomic, copy) NSString *qh_totalAmount;
/// 备注
@property (nonatomic, copy) NSString *qh_note;
/// 单位
@property (nonatomic, copy) NSString *qh_unit;
/// 数量
@property (nonatomic, copy) NSString *qh_quantity;
/// 规格发票
@property (nonatomic, copy) NSString *qh_specifications;

/**
 {
 
 "waybillId": "40284774635e8482016361632ef60063",
 "specifications": "asdad",
 "purchaserName": "asd",
 "taxpayerIdNum": "asdasd",
 "address": "asdasdasd",
 "phoneNum": "1234124",
 "openAccountNum": "asd1231231231",
 "openAccountBank": "2123asddsasd",
 "unitPrice": null,
 "fullPrice": 123123,
 "rate": null,
 "tax": null,
 "note": "123123",
 "auditState": "待开票",
 "laborName": "asdasdaw",
 "commodityName": "asd",
 "demandVehicle": 100,
 "unit": "吨",
 "totalAmount": 2400,
 "goodsSupplyId": null,
 "driverId": null
 }
 */

/// 查看发票
+ (void)qh_requestInvoiceWithParameters:(NSMutableDictionary *)parameters success:(void(^)(BOOL status, NSNumber *code, NSString *message, GQHInvoiceModel *invoice))success failure:(void(^)(NSError *error))failure;

@end
